export const levelMap = [
  "",
  "一年级",
  "二年级",
  "三年级",
  "四年级",
  "五年级",
  "六年级",
  "初一",
  "初二",
  "初三",
  "高一",
  "高二",
  "高三",
];
export const mapLevelToCNName = (level: number | string) => {
  if (typeof level !== "number") {
    level = Number(level);
  }
  if (typeof level === "number" && level % 1 === 0) {
    if (level <= 0 || level > 12) {
      return "其他";
    } else if (level <= 12 && level >= 1) {
      return levelMap[level];
    }
  } else {
    return "其他";
  }
};
